﻿/*
 * KLF Headless Browser
 * Written by Kris Oye <kristianoye@gmail.com>
 * Copyright (C) 2011-2012.  All rights reserved.
 */
namespace KLF.Lib.Browser.DOM.HTML
{
    /// <summary>
    /// Common ancestor for all block type elements.
    /// </summary>
    public class HTMLBlockBaseElement : HTMLElement
    {
        #region Constructors

        internal HTMLBlockBaseElement(Document owner, string tagName)
            : base(owner, tagName)
        {
        }

        #endregion

        #region DOM Level 2 HTML Compliance

        /// <summary>
        /// Horizontal text alignment. See the align attribute definition in HTML 4.01. 
        /// This attribute is deprecated in HTML 4.01.
        /// </summary>
        public string align
        {
            get
            {
                return getAttribute(HTMLConstants.HTML_ATT_ALIGN);
            }
            set
            {
                setAttribute(HTMLConstants.HTML_ATT_ALIGN, value);
            }
        }

        #endregion
    }
}
